package cn.zhaotianen.retrofit.app;

import android.app.Application;

/**
 * <p/>
 * <pre>
 * ***************************************************************
 *  Package: cn.zhaotianen.retrofit.app
 *  Description:
 *  @since 1.0.0
 *  @author zhaotianen
 *  @date 16/7/2
 *  @time 20:00
 * ***************************************************************
 * </pre>
 */
public class GlobalContext extends Application {

    //singleton
    private static GlobalContext globalContext = null;

    @Override
    public void onCreate() {
        super.onCreate();
        if (globalContext==null){
            globalContext = this;
        }

    }
    public static GlobalContext getInstance() {
        return globalContext;
    }
}
